<div class="actors form">
	<?php echo $this->Ajax->Form(array('type' => 'post',
    'options' => array(
        'model'=>'Tag',
        //'update'=>'dialog-form',
        'url' => array(
            'controller' => 'tags',
            'action' => 'add2'
        ),
		'confirm' => 'Are you sure?',
		'indicator' => 'loading',
        'before' => 'name=$("#tagName").val();',
		'complete'=>'nuevo_actor(request.responseText);'
    )
));

?>
	<fieldset>
	<legend><?php echo __('Add Tag'); ?></legend>
	<?php
		echo $this->Form->input('film_id');
		echo $this->Form->input('tag',array('div'=>(array('id'=>'div-tag'))));
	?>
	</fieldset>
	<?php echo $this->Form->end(__('Submit'));?>
	</div>